<?
	require_once("../cBasic/950cons.php");
	
	$sTable=$_GET['obj'];
	$aColumns = array();
	
//SQL
	$sQuery="select  * from $sTable where Status <>0";
	$rResult = mysql_query( $sQuery, $con ) or die(mysql_error());
	
	$fields = mysql_num_fields($rResult);
	
	for ($i=0; $i<$fields; $i++){
		if (mysql_field_name ($rResult,$i)=='Status'){continue;}
		else $aColumns[] = mysql_field_name ($rResult,$i);
	}

	$output['title'] = $aColumns;

	mysql_close($con);
	
	
	echo json_encode( $output );
?>